var name='Main'
var obj={
    name:'obj name',
    getNameFunc:function(){
        return function(){
            return this.name
        }
    }
}
console.log(obj.getNameFunc()()) //undefined